package cn.sitia.wallet.service;

import cn.sitia.wallet.domain.UserWallet;
import cn.sitia.wallet.domain.WalletTransaction;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

public interface IUserWalletService extends IService<UserWallet> {
    public BigDecimal getUserWalletBalance(int userId);

    /**
     * 用户消费接口
     */
    public void purchase(BigDecimal amount);

    /**
     * 用户退款接口
     */
    public void refund(BigDecimal amount);


}
